import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/login',
    name: 'login',
    component: () => import( '../views/login/LoginView')
  },

  {
    path: '/client/clientView',
    name: 'clientView',
    component: () => import( '../views/client/ClientView')
  },
  {
    path: '/client/clientPersonal',
    name: 'clientPersonal',
    component: () => import( '../views/client/ClientPersonal')
  },
  {
    path: '/client/clientAcct',
    name: 'clientAcct',
    component: () => import( '../views/client/ClientAcctView')
  },
  {
    path: '/client/carInfo',
    name: 'carInfo',
    component: () => import( '../views/client/CarInfoView')
  },
  {
    path: '/client/carlease',
    name: 'carlease',
    component: () => import( '../views/client/CarleaseView')
  },
  {
    path: '/client/deductInfo',
    name: 'deductInfo',
    component: () => import( '../views/client/DeductInfoView')
  },
  {
    path: '/client/leaseInfo',
    name: 'leaseInfo',
    component: () => import( '../views/client/LeaseInfoView')
  },
  {
    path: '/client/rechargeInfo',
    name: 'rechargeInfo',
    component: () => import( '../views/client/RechargeInfoView')
  },
  {
    path: '/client/returnInfo',
    name: 'returnInfo',
    component: () => import( '../views/client/ReturnInfoView')
  },

  {
    path: '/sale/saleView',
    name: 'saleView',
    component: () => import( '../views/sale/SaleView')
  },
  {
    path: '/sale/salePersonal',
    name: 'salePersonal',
    component: () => import( '../views/sale/SalePersonal')
  },
  {
    path: '/sale/clientInfo',
    name: 'clientInfo',
    component: () => import( '../views/sale/ClientInfoView')
  },
  {
    path: '/sale/clientAcct',
    name: 'clientAcct',
    component: () => import( '../views/sale/ClientAcctView')
  },
  {
    path: '/sale/carInfo',
    name: 'carInfo',
    component: () => import( '../views/sale/CarInfoView')
  },
  {
    path: '/sale/leaseInfo',
    name: 'leaseInfo',
    component: () => import( '../views/sale/LeaseInfoView')
  },
  {
    path: '/sale/returnInfo',
    name: 'returnInfo',
    component: () => import( '../views/sale/ReturnInfoView')
  },
  {
    path: '/sale/rechargeInfo',
    name: 'rechargeInfo',
    component: () => import( '../views/sale/RechargeInfoView')
  },
  {
    path: '/sale/deductInfo',
    name: 'deductInfo',
    component: () => import( '../views/sale/DeductInfoView')
  },
  {
    path: '/sale/carlease',
    name: 'carlease',
    component: () => import( '../views/sale/CarleaseView')
  },
  {
    path: '/sale/carreturn',
    name: 'carreturn',
    component: () => import( '../views/sale/CarreturnView')
  },
  {
    path: '/manager/managerView',
    name: 'managerView',
    component: () => import( '../views/manager/ManagerView')
  },
  {
    path: '/manager/managerPersonal',
    name: 'managerPersonal',
    component: () => import( '../views/manager/ManagerPersonal')
  },
  {
    path: '/manager/clientInfo',
    name: 'clientInfo',
    component: () => import( '../views/manager/ClientInfoView')
  },
  {
    path: '/manager/clientAcct',
    name: 'clientAcct',
    component: () => import( '../views/manager/ClientAcctView')
  },
  {
    path: '/manager/saleInfo',
    name: 'saleInfo',
    component: () => import( '../views/manager/SaleInfoView')
  },
  {
    path: '/manager/carInfo',
    name: 'carInfo',
    component: () => import( '../views/manager/CarInfoView')
  },
  {
    path: '/manager/leaseInfo',
    name: 'leaseInfo',
    component: () => import( '../views/manager/LeaseInfoView')
  },
  {
    path: '/manager/returnInfo',
    name: 'returnInfo',
    component: () => import( '../views/manager/ReturnInfoView')
  },
  {
    path: '/manager/rechargeInfo',
    name: 'rechargeInfo',
    component: () => import( '../views/manager/RechargeInfoView')
  },
  {
    path: '/manager/deductInfo',
    name: 'deductInfo',
    component: () => import( '../views/manager/DeductInfoView')
  },
  {
    path: '/manager/carlease',
    name: 'carlease',
    component: () => import( '../views/manager/CarleaseView')
  },
  {
    path: '/manager/carreturn',
    name: 'carreturn',
    component: () => import( '../views/manager/CarreturnView')
  },

  {
    path: '/admin/adminView',
    name: 'adminView',
    component: () => import( '../views/admin/AdminView')
  },
  {
    path: '/admin/adminInfo',
    name: 'adminInfo',
    component: () => import( '../views/admin/AdminInfoView')
  },
  {
    path: '/admin/adminlogin',
    name: 'adminlogin',
    component: () => import( '../views/admin/AdminloginView')
  },
  {
    path: '/admin/carInfo',
    name: 'carInfo',
    component: () => import( '../views/admin/CarInfoView')
  },
  {
    path: '/admin/clientAcct',
    name: 'clientAcct',
    component: () => import( '../views/admin/ClientAcctView')
  },
  {
    path: '/admin/clientInfo',
    name: 'clientInfo',
    component: () => import( '../views/admin/ClientInfoView')
  },
  {
    path: '/admin/clientlogin',
    name: 'clientlogin',
    component: () => import( '../views/admin/ClientloginView')
  },
  {
    path: '/admin/deductInfo',
    name: 'deductInfo',
    component: () => import( '../views/admin/DeductInfoView')
  },
  {
    path: '/admin/leaseInfo',
    name: 'leaseInfo',
    component: () => import( '../views/admin/LeaseInfoView')
  },
  {
    path: '/admin/managerInfo',
    name: 'managerInfo',
    component: () => import( '../views/admin/ManagerInfoView')
  },
  {
    path: '/admin/managerlogin',
    name: 'managerlogin',
    component: () => import( '../views/admin/ManagerloginView')
  },
  {
    path: '/admin/rechargeInfo',
    name: 'rechargeInfo',
    component: () => import( '../views/admin/RechargeInfoView')
  },
  {
    path: '/admin/returnInfo',
    name: 'returnInfo',
    component: () => import( '../views/admin/ReturnInfoView')
  },
  {
    path: '/admin/saleInfo',
    name: 'saleInfo',
    component: () => import( '../views/admin/SaleInfoView')
  },
  {
    path: '/admin/salelogin',
    name: 'salelogin',
    component: () => import( '../views/admin/SaleloginView')
  },
]

const router = new VueRouter({
  routes
})

export default router
